package com.translation.batch;

import java.io.File;
import java.io.IOException;
import java.sql.SQLException;

import com.translation.gutenberg.GutenbergImporter;

public class GutenbergBatch {

	public static void main(String[] args) throws IOException, SQLException {
		for (int i = 0; i < args.length; i++) {
			try {
				File f = new File(args[i]);
				GutenbergImporter fi = new GutenbergImporter();
				fi.importFile(f);
			} catch (Exception e) {
				System.out.println(args[i] + ":" + args[i + 1] + "\n");
				e.printStackTrace();
			}
		}
	}
}
